    <h3>Giỏ Hàng</h3>
        <? if(!$viewcart) : ?>
        <div id="cartDetail">
            <div class="detailDescription">
                    <center><font color=red>Giỏ hàng rỗng</font></center>
            </div>
        </div>
        <? else:      
            $total = 0;
			$totalprice = 0;
            foreach($viewcart as $key => $value){?>
            <div id="cartDetail">
                <div class="detailDescription">
                    <?=$cart[$value->Id];?> <b>x</b> <?=$value->Denomination?>
                </div>
                <div class="detailRemove">
                    <img src="styles/images/remove.png" onclick="removeCart('<?=$value->Id?>');">
                </div>
            </div>
        <? $totalprice = $totalprice + $cart[$value->Id]*$value->Price;    
			$total = $total + $cart[$value->Id];              
        } ?>
    <div id="cartTotalQuantity">
            <strong>Tổng số thẻ :</strong> <?=$total?>
    </div>
    <div id="cartTotalAmount">
        <strong>Tổng số tiền :</strong> <?=  number_format($totalprice);?> VNĐ
    </div>
	<? foreach($payment as $pkey => $pvalue){ ?>
    <div id="cartTotalAmount">
        <strong>Total <?=$pvalue->paygate_2c;?> :</strong> <?=number_format(round($totalprice/$pvalue->price,2),2); ?> 
		<? if($pvalue->paygate_2c=="LR") {?>USD<? }else { echo "VNĐ"; }?>
    </div>
	<? } ?>
    <div id="cartButton">
            <button type="button" onclick="emptyCart('Xác nhận xóa giỏ hàng ?');"><span>Xóa Hết</span></button>
            <button type="button" onclick="viewCart();"><span>Thanh Toán</span></button>
    </div>
    <? endif; ?>